<?php
#
# author: Phil Spagnolo
# (c)2008 South Hill Calvary Chapel
#

include_once("./root.inc.php");
include_once("${root}/common.php");

$linkList = array("direction.php");
$textList = array("Get Directions");

$title = "Weekly Services";
$meta_key='weekly, services, bible, study, time, Wednesday, Sunday, Ministry, Children, Jr. High, High School, Home Fellowship';
$meta_desc="Weekly servies and times of worship at South Hill Calvary Chapel in Puyallup, WA Pierce County";
print_html_head($title ,$meta_key,$meta_desc);

print_java_head(NULL);
begin_body();
page_title($title);

in_page_link(1, false, $linkList, $textList, "");


function service_block ($name, $services) {
printf("<h4>$name</h4>\n");
printf("<div id='plainlist'>\n");
printf("\t<ul>\n");

for ($i = 0; $i < count($services); $i++) {
	printf("\t\t<li>\n");
	printf("\t\t\t<H5>%s</H5>\n", $services[$i][0]);
	printf("\t\t\t<div class='paragraph'>\n");
	printf("\t\t\t\t%s\n", $services[$i][1]);
	printf("\t\t\t</div>\n");
	printf("\t\t</li>\n");
}
printf("\t</ul>\n");
printf("</div>\n");
}

$name ="Sunday Services";
$services = array(
array("Worship Service - 10:00 AM","Worship and an in depth expository Bible study with Pastor Ron.  Visit our <a href='sermon.php?service=Sunday'>Archived Sermons Page</a> to see the most recent teaching."),
array("Children's Ministry  - 10:00 AM","Children's Ministry is provided for both services on Sunday.  The classroom depends on your child's age or grade level.  Please ask a greeter for help finding your child's classroom."),
array("Abide Service (Jr. High) - 10:00 AM","The Junior Highers (Abide) have their own service  with Worship &amp; Bible study downstairs in the youth room.")
);
service_block ($name, $services);



$name ="Wednesday Service";
$services = array(
array("Midweek Study - 7:00 to 8:30 PM","Worship and through the Bible study with Pastor Ron.  Visit our <a href='sermon.php?service=Wednesday'>Archived Sermons Page</a> to see the most recent teaching."),
array("Children's Ministry - 7:00 to 8:30 PM","Children's Ministry is available for your child.  The classroom depends on your child's age or grade level.  Please ask a greeter for help finding your child's classroom."),
array("Abide (Jr. High) - 7:00 to 8:30 PM","Join us as we grow in the grace of the Lord Jesus Christ downstairs in youth room.")
);
service_block ($name, $services);

printf("<h4>Prayer Meetings </h4>\n");
printf("<div class='paragraph'>\n");
printf("\tWe hope you'll join us as we pray for the services, the Lord's will for the church, our Missionaries, and more...\n");
printf("</div>\n");

$prayer_meeting = array("Sunday Morning Prayer",
					   "Wednesday Evening Prayer", 
					   "Men's Prayer Meetings",
					   "Women's Prayer Meetings");
$date_loc = array("8:00 AM - the Upper Room",
					   "6:00 PM - the Upper Room", 
					   "Saturdays at 7:30 AM (Except the 2nd Saturday) - the sanctuary",
					   "Mondays at 7:30 AM - the church office");
printf("<div id='plainlist'>\n");
printf("\t<ul>\n");
for ($i = 0; $i < count($prayer_meeting); $i++) {
	printf("\t\t<li>\n");
	printf("\t\t\t<H5>%s</H5><div class='paragraph'>%s</div>\n", $prayer_meeting[$i], $date_loc[$i]);
	printf("\t\t</li>\n");
}
printf("\t</ul>\n");
printf("</div>\n");

end_page_title();
end_body();
?>
